cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 14)
project(MediaExporter)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Bin)
set(FFMPEG_DEV_DIR "C:/ffmpeg-4.3-win32-shared")
include_directories("${FFMPEG_DEV_DIR}/include")
add_library(MediaExporter SHARED MediaExporter.cpp MediaExporter.h)
target_link_libraries(MediaExporter
        ${FFMPEG_DEV_DIR}/lib/avcodec.lib
        ${FFMPEG_DEV_DIR}/lib/avformat.lib
        ${FFMPEG_DEV_DIR}/lib/avutil.lib
        ${FFMPEG_DEV_DIR}/lib/swresample.lib
        ${FFMPEG_DEV_DIR}/lib/swscale.lib
        )